package com.coffeeloversupportlibrary.coffeelover.mercury.entity;

import java.util.List;

/**
 * @author 盛守义
 * @createTime 2021/11/22 21:34
 * @projectName TurningCoffee
 * @className Type.java
 * @description TODO
 */
public class Type {
    private boolean success;

    public boolean isSuccess() {
        return success;
    }

    private Integer code;
    private String message;
    private DataDTO data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        private List<TypeGroupDTO> typeGroup;

        public List<TypeGroupDTO> getTypeGroup() {
            return typeGroup;
        }

        public void setTypeGroup(List<TypeGroupDTO> typeGroup) {
            this.typeGroup = typeGroup;
        }

        public static class TypeGroupDTO {
            private ParentTypeDTO parentType;
            private List<SonTypesDTO> sonTypes;

            public ParentTypeDTO getParentType() {
                return parentType;
            }

            public void setParentType(ParentTypeDTO parentType) {
                this.parentType = parentType;
            }

            public List<SonTypesDTO> getSonTypes() {
                return sonTypes;
            }

            public void setSonTypes(List<SonTypesDTO> sonTypes) {
                this.sonTypes = sonTypes;
            }

            public static class ParentTypeDTO {
                private Integer typeId;
                private String typeName;
                private Object typeParentId;
                private Boolean deleted;

                public Integer getTypeId() {
                    return typeId;
                }

                public void setTypeId(Integer typeId) {
                    this.typeId = typeId;
                }

                public String getTypeName() {
                    return typeName;
                }

                public void setTypeName(String typeName) {
                    this.typeName = typeName;
                }

                public Object getTypeParentId() {
                    return typeParentId;
                }

                public void setTypeParentId(Object typeParentId) {
                    this.typeParentId = typeParentId;
                }

                public Boolean getDeleted() {
                    return deleted;
                }

                public void setDeleted(Boolean deleted) {
                    this.deleted = deleted;
                }
            }

            public static class SonTypesDTO {
                private Integer typeId;
                private String typeName;
                private Integer typeParentId;
                private Boolean deleted;

                public Integer getTypeId() {
                    return typeId;
                }

                public void setTypeId(Integer typeId) {
                    this.typeId = typeId;
                }

                public String getTypeName() {
                    return typeName;
                }

                public void setTypeName(String typeName) {
                    this.typeName = typeName;
                }

                public Integer getTypeParentId() {
                    return typeParentId;
                }

                public void setTypeParentId(Integer typeParentId) {
                    this.typeParentId = typeParentId;
                }

                public Boolean getDeleted() {
                    return deleted;
                }

                public void setDeleted(Boolean deleted) {
                    this.deleted = deleted;
                }
            }
        }
    }
}
